<?php
/**
 * Common Template - tpl_footer.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_footer = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_footer.php 15511 2010-02-18 07:19:44Z drbyte $
 */
require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
?>

<?php
if (!isset($flag_disable_footer) || !$flag_disable_footer) {
?>
<div id="footerWrapper">
	<div id="footerWrapper-flag">
		<div id="footerWrapper-flag-left"></div>
		<div id="footerWrapper-flag-center"><div id="footerWrapper-flag-center-content"><?php require DIR_WS_MODULES.$template_dir.'/product_listing_alpha_sorter.php' ?></div></div>
		<div id="footerWrapper-flag-right"></div>
	</div>
	<div class="footerBg">
		<div id="footerWrapper-info">
			<div id="footerWrapper-info-title">
				<h3>Company Info</h3>
				<h3>Customer Service</h3>
				<h3>Payment &amp; Shipping</h3>
				<h3>Company Policies</h3>
				<div class="clearBoth"></div>
			</div>
			<div class="footerWrapper-info-block">
			<ul>
				<li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US)?>" rel="nofollow"><?php echo TEXT_ABOUT_US?></a></li>
				<li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP)?>" rel="nofollow"><?php echo TEXT_SITE_MAP?></a></li>
				<li><a href="/blog"><?php echo 'Blog'?></a></li>
			</ul>
			</div>
			<div class="footerWrapper-info-block">
			<ul>
				<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US)?>" rel="nofollow"><?php echo TEXT_CONTACT_US?></a></li>
				<li><a href="<?php echo zen_href_link(FILENAME_FAQ)?>" rel="nofollow"><?php echo TEXT_FAQ?></a></li>
			</ul>		
			</div>
			<div class="footerWrapper-info-block">
			<ul>
				<li><a href="<?php echo zen_href_link(FILENAME_PAYMENT_METHODS)?>" rel="nofollow"><?php echo TEXT_PAYMENT_METHODS ?></a></li>
				<li><a href="<?php echo zen_href_link(FILENAME_SHIPPING)?>" rel="nofollow"><?php echo 'Shipping Guide'?></a></li>
			</ul>		
			</div>
			<div class="footerWrapper-info-block">
			<ul>
				<li><a href="<?php echo zen_href_link(FILENAME_PRIVACY)?>" rel="nofollow"><?php echo 'Privacy Policy' ?></a></li>
				<li><a href="<?php echo zen_href_link(FILENAME_RETURN)?>" rel="nofollow"><?php echo TEXT_RETURN_POLICY?></a></li>
				<li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS)?>" rel="nofollow"><?php echo 'Terms of Use'?></a></li>
			</ul>		
			</div>
			<div class="clearBoth"></div>
		</div>
	</div>
<div style="clear:both;"></div>	
<div style="text-align: center;"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES.'footer.jpg'?>" alt="payment" /></div>
<!--bof- site copyright display -->
<div id="footerWrapper-CopyRight" style="text-align: center;"><?php echo FOOTER_TEXT_BODY; ?></div>
<!--eof- site copyright display -->
</div>		
<?php
} // flag_disable_footer
?>